import os
from pathlib import Path

def print_directory_tree(path, prefix=""):
    """Recursively prints the directory tree starting from the given path."""
    path = Path(path)
    contents = list(path.iterdir())
    pointers = ["├── "] + ["│   "] * (len(contents) - 1)
    for pointer, path in zip(pointers, contents):
        print(prefix + pointer + path.name)
        if path.is_dir():
            extension = "└── " if pointer == "├── " else "    "
            print_directory_tree(path, prefix + extension)

# 打印当前目录的结构树
print_directory_tree(".")